﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LyncServerExtension
{
    /// <summary>
    /// Class to represent a Lync user.
    /// Those properties are given from the Active Directory.
    /// </summary>
    public sealed class LyncUser
    {
        /// <summary>
        /// Gets or sets the name of the account.
        /// </summary>
        /// <value>
        /// The name of the account.
        /// </value>
        public string AccountName { get; set; }

        /// <summary>
        /// Gets or sets the sip.
        /// </summary>
        /// <value>
        /// The sip.
        /// </value>
        public string Sip { get; set; }

        /// <summary>
        /// Gets or sets the first name.
        /// </summary>
        /// <value>
        /// The first name.
        /// </value>
        public string FirstName { get; set; }


        /// <summary>
        /// Gets or sets the last name.
        /// </summary>
        /// <value>
        /// The last name.
        /// </value>
        public string LastName { get; set; }

        [NonSerialized]
        private byte[] photo;

        /// <summary>
        /// Gets or sets the photo.
        /// This binary property is not serializable.
        /// </summary>
        /// <value>
        /// The photo.
        /// </value>
        public byte[] Photo
        {
            get { return photo; }
            set { photo = value; }
        }
    }
}
